﻿@model IEnumerable<InfoLogic.Models.Business>

@{
    ViewBag.Title = "Business";
    
}

<h2>Manage Your Businesses</h2>

<p>
    @Html.ActionLink("Create New Business", "Create")
</p>

 @foreach (var item in Model)
    {
    <ul data-role="listview" data-inset="true">
        <li data-role="list-divider">@Html.DisplayFor(modelItem => item.BusinessName)</li>
       
        <li>
             Business Type: @Html.DisplayFor(modelItem => item.BusinessType)
        </li>
        <li>
             Street Name: @Html.DisplayFor(modelItem => item.StreetName)
        </li>
        <li>
             Stall Number: @Html.DisplayFor(modelItem => item.stallNumber)
        </li>
        <li> 
             Starting Date: @Html.DisplayFor(modelItem => item.StartingDate)
        </li>
            @Html.ActionLink("Edit", "Edit", new { id=item.BusinessId }) |
            @Html.ActionLink("Manage", "Manage", new { id = item.BusinessId })
    </ul>
    }


